package com.example.warehouse.sys.dao.persist.respository.impl;

import com.example.warehouse.sys.dao.persist.mapper.UserRoleMapper;
import com.example.warehouse.sys.dao.persist.respository.IUserRoleRepository;
import com.example.warehouse.sys.pojo.entity.SysUserRole;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Slf4j
@Repository
public class UserRoleRepositoryImpl implements IUserRoleRepository {
    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public int insertByRoleIdAndUserId(SysUserRole sysUserRole) {
        log.debug("开始添加用户与角色关系表数据");
        return userRoleMapper.insert(sysUserRole);
    }


}
